package org.idea.eaglemq.nameserver.utils;

import org.idea.eaglemq.nameserver.common.CommonCache;

/**
 * @author: LunBoWang
 * @description:
 * @date: 2025/5/6 下午8:32
 * @version: 1.0
 */
public class NameserverUtils {

    public static boolean isVerify(String user, String password) {
        String rightUser = CommonCache.getNameserverProperties().getNameserverUser();
        String rightPassword = CommonCache.getNameserverProperties().getNameserverPwd();
        if (!rightUser.equals(user) || !rightPassword.equals(password)) {
            return false;
        }
        return true;
    }

}
